package com.audaque.springboot.foshanupload.core.properties;

import lombok.*;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zgb
 * @desc ...
 * @date 2021-05-24 14:09:01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
@ConfigurationProperties(prefix = "thread")
public class ThreadProperties {
    private Boolean singleThread;
    private Integer availableProcessors;
    private Integer availableProcessorsQueueSize;
    private Integer waitConsumeInQueueSize;
    private Integer availableProcessorsMultipleResult;
    private Integer availableProcessorsAwaitTerminationSeconds;
    private Long excelProduceSleepMillSeconds;
    private Long mqConsumSleepMillSeconds;

}
